import r from '@/utils/request';
import type { ListParams, ListResponseType, ResponseType } from './types';

enum API {
    reserpwd='/account/resetPwd',//重置密码
}


export function ResetPwdAPI(params: ResetPwdItem): Promise<accountlist> {
    return r.put(API.reserpwd, params)
}
export interface ResetPwdItem{
    pwd:string;
    id:number;

}

export type accountlist = ListResponseType<{
    id: number;
    companyId: number;
    level: number;
    staffId: number;
    name: string;
    pwd: string;
    newPwd: null;
    type: number;
    enable: number;
    photo: string;
    mobile: string;
    username: string;
    roleIds: null;
    outLogs: null;
    verifyCode: null;
    verifyCodeId: null;
    openId: null;
}>